<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>软件项目管理选择题系统</title>
    <!-- 预加载关键资源 -->
    <link rel="preload" href="quiz.js" as="script">
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .quiz-container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .question {
            margin-bottom: 20px;
        }
        .options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        .option {
            display: inline-block;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            user-select: none;
        }
        .option:hover {
            background-color: #f0f0f0;
        }
        .option.selected {
            background-color: #e3f2fd;
            border-color: #2196F3;
        }
        .option.correct {
            background-color: #dff0d8;
            border-color: #3c763d;
            color: #3c763d;
        }
        .option.incorrect {
            background-color: #f2dede;
            border-color: #a94442;
            color: #a94442;
        }
        .progress {
            margin-bottom: 20px;
            font-size: 16px;
            color: #666;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 20px;
        }
        button#next {
            display: none;
        }
        .check-button {
            display: block !important;
            background-color: #2196F3;
        }
        h3 {
            margin-top: 0;
            color: #333;
        }
        /* 加载提示 */
        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }
        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
    <div class="quiz-container">
        <div class="progress"></div>
        <div id="quiz">
            <div class="loading">正在加载题目...</div>
        </div>
        <button id="next">下一题</button>
    </div>
    <script src="quiz.js"></script>
</body>
</html> 